An example of a collection with a relatively large number of children that are hidden from the tree.

The tree works well when the notes are structured in a hierarchy so that the number of items stays small. When a note has a large number of notes (in the order of thousands or tens of thousands), two problems arise:

Since v0.102.0, Trilium allows the tree to hide the child notes of particular notes. This works for both Collections and normal notes.

Interaction

When the subtree of a note is hidden, there are a few subtle changes:

Spotlighting

Even if the subtree of a note is hidden, if a child note manages to become active, it will still appear inside the tree in a special state called spotlighted.

During this state, the note remains under its normal hierarchy, so that its easy to tell its location. In addition, this means that:

The note appears in italics to indicate its temporary display. When switching to another note, the spotlighted note will disappear.

Working with collections

For large collections, it can be helpful to hide their child notes for performance reasons or de-cluttering the tree.

To toggle this behavior:

Working with normal notes

It's possible to hide the subtree for normal notes as well, not just collections. To do so, right click the note in the Note Tree and select AdvancedHide subtree.